﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminSite/AdminSite.Master" AutoEventWireup="true"
    CodeBehind="AddEmployee.aspx.cs" Inherits="InsuranceVehicle.AdminSite.AddEmployee" %>

<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="pageTitle" runat="server">
    Add Employee
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlace" runat="server">
    <uc1:Menu ID="Menu1" runat="server" SelectedMenu="add_employee" ShowElement="all" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="breadCrumb" runat="server">
    Add Employee
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="titleContent" runat="server">
    Add Employee
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainContent" runat="server">
    <div class="contentinner">
        <h4 class="widgettitle nomargin shadowed">
            Enter your Infomation</h4>
        <div class="widgetcontent bordered shadowed nopadding">
            <div class="stdform stdform2">
                <p>
                    <label>
                        First Name</label>
                    <span class="field">
                        <asp:TextBox ID="txtFirstname" CssClass="input-xlarge" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ForeColor="Red"
                            Display="Dynamic" ErrorMessage="Firstname is not empty" SetFocusOnError="True"
                            ControlToValidate="txtFirstname" Font-Italic="True"></asp:RequiredFieldValidator>
                    </span>
                </p>
                <p>
                    <label>
                        Last Name</label>
                    <span class="field">
                        <asp:TextBox ID="txtLastname" CssClass="input-xlarge" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Lastname is not empty"
                            Display="Dynamic" ControlToValidate="txtLastname" SetFocusOnError="True" ForeColor="Red"
                            Font-Italic="True"></asp:RequiredFieldValidator>
                    </span>
                </p>
                <p>
                    <label>
                        Account</label>
                    <span class="field">
                        <asp:TextBox ID="txtAccount" CssClass="input-xlarge" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Account is not empty"
                            Display="Dynamic" SetFocusOnError="True" ForeColor="Red" ControlToValidate="txtAccount"
                            Font-Italic="True"></asp:RequiredFieldValidator>
                        <asp:Label ID="lblErrAccount" ForeColor="Red" runat="server" Font-Italic="True"></asp:Label>
                    </span>
                </p>
                <p>
                    <label>
                        Pasword</label>
                    <span class="field">
                        <asp:TextBox ID="txtPassword" CssClass="input-xlarge" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Password is not empty"
                            Display="Dynamic" SetFocusOnError="True" ForeColor="Red" ControlToValidate="txtPassword"
                            Font-Italic="True"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Password and Confirm password is not match"
                            Display="Dynamic" ForeColor="Red" ControlToCompare="txtConPass" ControlToValidate="txtPassword"
                            Font-Italic="True"></asp:CompareValidator>
                    </span>
                </p>
                <p>
                    <label>
                        Confirm Password</label>
                    <span class="field">
                        <asp:TextBox ID="txtConPass" CssClass="input-xlarge" runat="server" TextMode="Password"></asp:TextBox>
                    </span>
                </p>
                <p>
                    <label>
                        Day of birth</label>
                    <span class="field">
                        Month &nbsp;<asp:DropDownList ID="cbbMonth" runat="server" class="uniformselect" Style="width: 90px">
                        </asp:DropDownList>
                        &nbsp;&nbsp;&nbsp;
                        Day &nbsp;<asp:DropDownList ID="cbbDay" runat="server" class="uniformselect" Style="width: 90px">
                        </asp:DropDownList>
                        &nbsp;&nbsp;&nbsp;
                        Year &nbsp;<asp:DropDownList ID="cbbYear" runat="server" class="uniformselect" Style="width: 90px">
                        </asp:DropDownList>
                    </span>
                </p>
                <p>
                    <label>
                        Address</label>
                    <span class="field">
                        <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Width="270px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Address is not empty"
                            ForeColor="Red" Display="Dynamic" ControlToValidate="txtAddress" Font-Italic="True"></asp:RequiredFieldValidator>
                    </span>
                </p>
                <p>
                    <label>
                        Phone</label>
                    <span class="field">
                        <asp:TextBox ID="txtPhone" CssClass="input-xlarge" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Phone number is not empty"
                            Display="Dynamic" ForeColor="Red" ControlToValidate="txtPhone" SetFocusOnError="True"
                            Font-Italic="True"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" SetFocusOnError="True"
                            ValidationExpression="^[0-9]+$" Display="Dynamic" ErrorMessage="Phone number must be a numberic"
                            ControlToValidate="txtPhone" ForeColor="Red" Font-Italic="True"></asp:RegularExpressionValidator>
                    </span>
                </p>
                <p>
                    <label>
                        Email</label>
                    <span class="field">
                        <asp:TextBox ID="txtEmail" CssClass="input-xlarge" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Email is not empty"
                            ControlToValidate="txtEmail" Display="Dynamic" ForeColor="Red" SetFocusOnError="True"
                            Font-Italic="True"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Email is incorrect"
                            ControlToValidate="txtEmail" Display="Dynamic" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            Font-Italic="True"></asp:RegularExpressionValidator>
                        <asp:Label ID="lblErrEmail" ForeColor="Red" runat="server" Font-Italic="True"></asp:Label>
                    </span>
                </p>
                <p class="stdformbutton">
                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" class="btn btn-primary" Width="100px"
                        OnClick="btnSubmit_Click" CausesValidation="False" />
                    <asp:Button ID="btnReset" runat="server" Text="Reset" class="btn" Width="100px" OnClick="btnReset_Click"
                        CausesValidation="False" />
                </p>
            </div>
        </div>
    </div>
</asp:Content>
